package com.iceframework.hiapp.core.utils;

import com.iceframework.hiapp.core.constants.SysConfigConstants;
import ohos.hiviewdfx.HiLog;
import ohos.hiviewdfx.HiLogLabel;

public class HiLogUtils {

    private static HiLogLabel globalHiLogLabel = new HiLogLabel(HiLog.LOG_APP,0x000101, SysConfigConstants.LOG_LABEL_TAG);

    public static void debug(String text){
        HiLog.debug(globalHiLogLabel,"%{public}s", text);
    }

    public static void info(String text){
        HiLog.info(globalHiLogLabel,"%{public}s", text);
    }

    public static void warn(String text){
        HiLog.warn(globalHiLogLabel,"%{public}s", text);
    }

    public static void error(String text){
        HiLog.error(globalHiLogLabel,"%{public}s", text);
    }

    public static void fatal(String text){
        HiLog.fatal(globalHiLogLabel,"%{public}s", text);
    }

}
